﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model
{
    public class DiseaseSearchCondtion
    {
        public string FirstLetter { get; set; }

        public DiseaseSearchCondtion()
        {
            FirstLetter = string.Empty;
        }

        public string ToSqlConditonString()
        {
            string sql = string.Empty;

            if (FirstLetter.Length > 0)
            {
                sql += string.Format(" [Disease].[firstsymbolofname] like '{0}%' ", FirstLetter);
            }

            return sql;
        }
    }
}
